package com.aiti.lulian.mapper.newCard;

import com.aiti.lulian.dto.newCard.CardUserManagementDto;
import com.aiti.lulian.vo.newCard.CardUserManagementVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CardAdminBackendMapper {

    List<CardUserManagementVo> selectUserManagementPage(@Param("dto") CardUserManagementDto dto);

    void deleteAdminAccountRole(@Param("enterpriseId") String enterpriseId);

    String selectUserId(@Param("username") String username);

    void createUser(@Param("baseId") String baseId, @Param("username") String username, @Param("password") String password);

    void createUserRole(@Param("baseId") String baseId, @Param("userId") String userId, @Param("roleId") String roleId, @Param("enterpriseId") String enterpriseId);
}
